package pac;

import java.sql.*;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

public class DAOconnection {
    private static final Logger Log = Logger.getLogger(Connect.class);
    private DatabaseConnector pool;
    
    public static Connection createConnection(        
        ) throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException {
        PropertyConfigurator.configure("connection.properties");         
            Class.forName(className).newInstance();
            Connection conn = DriverManager.getConnection(url, userName, password);

            return conn;
        }
    
}
